/** @format */

const routes = [
  {
    path: '/',
    component: () => import('@/views/index'),
    name: 'index',
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home'),
        hidden: true,
        meta: {
          title: '北京市文明实践号',
          TabbarShow: true,
        },
      },
      {
        path: '/ground',
        name: 'ground',
        component: () => import('@/views/ground'),
        hidden: true,
        meta: {
          title: '实践机构',
          TabbarShow: true,
        },
      },
      {
        path: '/activities',
        name: 'activities',
        component: () => import('@/views/activities'),
        hidden: true,
        meta: {
          title: '志愿活动',
          TabbarShow: true,
        },
      },
      {
        path: '/project',
        name: 'project',
        component: () => import('@/views/project'),
        hidden: true,
        meta: {
          title: '品牌项目',
          TabbarShow: true,
        },
      },
      {
        path: '/info',
        name: 'info',
        component: () => import('@/views/info'),
        hidden: true,
        meta: {
          title: '实践资讯',
          TabbarShow: true,
        },
      },
      {
        path: '/ground/detail',
        name: 'groundDetail',
        component: () => import('@/views/ground/detail'),
        hidden: true,
        meta: {
          TabbarShow: true,
        },
      },
      {
        path: '/activities/detail',
        name: 'activitiesDetail',
        component: () => import('@/views/activities/detail'),
        hidden: true,
        meta: {
          TabbarShow: true,
        },
      },
      {
        path: '/project/detail',
        name: 'projectDetail',
        component: () => import('@/views/project/detail'),
        hidden: true,
        meta: {
          TabbarShow: true,
        },
      },
      {
        path: '/info/detail',
        name: 'infoDetail',
        component: () => import('@/views/info/detail'),
        hidden: true,
        meta: {
          TabbarShow: true,
        },
      },
      {
        path: '/middle',
        name: 'middle',
        component: () => import('@/views/middle'),
        hidden: true,
        meta: {
          TabbarShow: true,
        },
      },
      {
        path: '/map',
        name: 'map',
        component: () => import('@/views/map'),
        hidden: true,
        meta: {
          title: '阵地地图',
          TabbarShow: true,
        },
      },
      {
        path: '/',
        redirect: '/home',
      },
      {
        path:'/ground/details', //扫码进阵地首页，不需要底部导航，需要进项目首页时点门户
        name: 'groundDetails',
        component: () => import('@/views/ground/details'),
        hidden: true,
        meta: {
          TabbarShow: false,
        },
      }
    ],
  },
]
export default routes
